<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/paginas/template.xhtml">

	<ui:define name="corpoForm">

		<h:form id="formEditarSMSRecebida" prependId="false">

			<p:panelGrid columns="3" styleClass="botoes" id="botoes">

				<p:commandButton value="#{rsc.label_enviarResposta}"
					styleClass="botao" update="growl"
					action="#{manterSmsRecebidaBean.enviarResposta}" ajax="false"
					onclick="setTimeout('document.getElementById(\'' + this.id + '\').disabled=true;', 50);"
					title="#{rsc.title_respostarSms}" immediate="true">
				</p:commandButton>

				<p:commandButton value="#{rsc.label_adicionarBlacklist}"
					styleClass="botao" update="growl"
					action="#{manterSmsRecebidaBean.adicionarBlacklist}" ajax="false"
					onclick="setTimeout('document.getElementById(\'' + this.id + '\').disabled=true;', 50);"
					title="#{rsc.title_adicionarBlacklist}" immediate="true">
				</p:commandButton>

				<p:commandButton value="#{rsc.label_cancelar}" styleClass="botao"
					update="growl" action="#{manterSmsRecebidaBean.cancelar}"
					ajax="false"
					onclick="setTimeout('document.getElementById(\'' + this.id + '\').disabled=true;', 50);"
					title="#{rsc.title_cancelar}" immediate="true">
				</p:commandButton>

			</p:panelGrid>


			<p:panel id="pnlNovoSMSRecebida"
				header="#{rsc.label_responderSmsRecebida}" toggleable="true"
				toggleSpeed="500">

				<p:panelGrid columns="2">
					<p:outputLabel value="#{rsc.label_celular}" />

					<h:outputText value="#{manterSmsRecebidaBean.entidade.celular}" />

					<p:outputLabel value="#{rsc.label_mensagem}" />

					<h:outputText value="#{manterSmsRecebidaBean.entidade.nome}" />

					<p:outputLabel value="#{rsc.label_respostaSms}" for="txtResposta"
						styleClass="obrigatorio" />
					<p:panelGrid columns="1">
						<p:inputTextarea label="#{rsc.label_respostaSms}" required="true"
							id="txtResposta" maxlength="150" size="60"
							title="#{rsc.title_respostaSms}" counter="counter"
							counterTemplate="{0} caracteres restantes."
							value="#{manterSmsRecebidaBean.entidade.resposta}" />
						<h:outputText id="counter" />
					</p:panelGrid>

				</p:panelGrid>


			</p:panel>



		</h:form>

	</ui:define>
</ui:composition>

